package com.kfm.base.structure;

public class Linked {

    // 头节点
    private Node first;

    public void add(Object value){
       Node node = new Node(value, null);
        if (first == null) {
            first = node;
        }
    }

    class Node{

        private Object value;

        private Node next;

        public Node(Object value, Node next){
            this.value = value;
            this.next = next;
        }

    }
}


